#  测试数据
class Data:
    def __init__(self):
        self.data_login = {
            "username": "user",
            "password": "e10adc3949ba59abbe56e057f20f883e"
        }
        self.data_login_NoMoney = {
            "username": "2",
            "password": "e10adc3949ba59abbe56e057f20f883e"
        }
        self.data_login_NoBankCar = {
            "username": "4",
            "password": "e10adc3949ba59abbe56e057f20f883e"
        }
        self.data_login_NoPayPassword = {
            "username": "3",
            "password": "e10adc3949ba59abbe56e057f20f883e"
        }

        self.data_login_fail_NoValue = {
            "username": "user",
            "password": ""
        }

        self.data_login_fail_NoKey = {
            "username": "user"
        }

        self.data_sql_injection = {
            "username": "user' OR '1'='1",
            "password": "123456"
        }

        self.data_buy_into = {
            "changeMoneyId": 1,
            "userId": 161,
            "passWord": 123456
        }
        self.data_buy_into_NoMoney = {
            "changeMoneyId": 1,
            "userId": 163,
            "passWord": 123456
        }
        self.data_buy_into_NoPayPassword = {
            "changeMoneyId": 1,
            "userId": 164,
            "passWord": 123456
        }
        self.data_buy_into_NoBankCar = {
            "changeMoneyId": 1,
            "userId": 165,
            "passWord": 123456
        }

        self.data_add_card = {
            "cardbank": "建设银行",
            "type": 1,
            "cardnum": "11111111111111112"
        }

        self.data_register = {
            "username": "user1",
            "password": "123456"
        }

        self.data_loans = {
            'amount': 1000, 'term': 1, 'rate': 0.1500
        }
